package com.shujia.wyh.day05;

/*
        键盘录入行数和列数，输出对应的星形

 */
import java.util.Scanner;
public class FunctionTest3 {
    public static void main(String[] args) {
        //创建键盘录入对象
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入行数：");
        int row = sc.nextInt();
        System.out.println("请输入列数：");
        int col = sc.nextInt();

        printStar(row,col);


    }

    /**
     *  返回值类型：void
     *  参数列表：int a,int b
     */
    public static void printStar(int a,int b){
        for(int i=1;i<=a;i++){
            for(int j=1;j<=b;j++){
                System.out.print("*\t");
            }
            System.out.println();
        }
    }
}
